package com.houg.testpayapi.service;

import com.houg.payapi.entity.PayInfo;
import com.houg.payapi.service.PayService;
import org.apache.dubbo.config.annotation.Service;


/**
 * @Author: NALHOUG
 * @Time: 2019/11/11 21:40
 * @Explain:
 */
@Service
public class PayServiceImpl implements PayService {

    @Override
    public String aliPay(PayInfo payInfo) {
        return "用户"+payInfo.getUserId()+"使用支付宝支付，订单"+payInfo.getOrderId()+"消费金额"+payInfo.getSum()+"元";
    }

    @Override
    public String weChatPay(PayInfo payInfo) {
        return "用户"+payInfo.getUserId()+"使用微信支付，订单"+payInfo.getOrderId()+"消费金额"+payInfo.getSum()+"元";
    }

    @Override
    public String unionPay(PayInfo payInfo) {
        return "用户"+payInfo.getUserId()+"使用银联支付，订单"+payInfo.getOrderId()+"消费金额"+payInfo.getSum()+"元";
    }
}
